<template>
  <div class="customTitle">
    <div class="line"></div>
    <div class="title">{{ title }}</div>
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: 'CustomTitle',
  props: {
    title: {
      type: String,
      default: ''
    }
  }
};
</script>

<style scoped lang="scss">
.customTitle {
  display: flex;
  align-items: center;
  height: 31px;
  .line {
    width: 3Px;
    height: 18px;
    border-radius: 2px;
    background: $primary-color;
  }
  .title {
    font-size: 20px;
    font-weight: 600;
    margin-left: 8px;
    color: $text-title-color;
  }
}
</style>
